package my.thread;

public class ThreadAdd implements Runnable {
	private ThreadMethod method;

	public ThreadAdd(ThreadMethod method) {
		this.method = method;
	}

	@Override
	public void run() {
		while(true){
		method.calcNumber();
		}
	}

}
